package com.oracle.pojo;

import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.math.BigDecimal;

@Component
public class Orderitem implements Serializable {
    private Integer oiid;

    private Integer oid;

    private Integer bid;

    private Integer num;

    private BigDecimal price;

    private BigDecimal subtotal;

    private String title;

    private String photo;

    private static final long serialVersionUID = 1L;

    public Integer getOiid() {
        return oiid;
    }

    public void setOiid(Integer oiid) {
        this.oiid = oiid;
    }

    public Integer getOid() {
        return oid;
    }

    public void setOid(Integer oid) {
        this.oid = oid;
    }

    public Integer getBid() {
        return bid;
    }

    public void setBid(Integer bid) {
        this.bid = bid;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getSubtotal() {
        return subtotal;
    }

    public void setSubtotal(BigDecimal subtotal) {
        this.subtotal = subtotal;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    @Override
    public String toString() {
        return "Orderitem{" +
                "oiid=" + oiid +
                ", oid=" + oid +
                ", bid=" + bid +
                ", num=" + num +
                ", price=" + price +
                ", subtotal=" + subtotal +
                ", title='" + title + '\'' +
                ", photo='" + photo + '\'' +
                '}';
    }
}